<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/7/6
  Time: 10:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="java.util.List" %>
<%@ page import="cn.yunhe.bean.HotelPrice" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--<%

     List<HotelPrice> hotelPriceList= (List<HotelPrice>) request.getAttribute("hotelPriceList");
    if (hotelPriceList==null){
        request.getRequestDispatcher("GetBackHotelRoomTypeServlet").forward(request,response);
    }
%>--%>
<table border="1px" cellpadding="0" cellspacing="0" width="800px" align="center">
    <tr>
        <th>订单ID</th>
        <th>酒店名字</th>
        <th>房间类型</th>
        <th>预定房间数</th>
        <th>房间价格</th>
        <th>总计</th>
    </tr>
    <c:forEach items="${hotelPriceList}" var="L">
        <tr>
            <td>${L.id}</td>
            <td>${L.roomtype.hotel.hotelName}</td>
            <td>${L.roomtype.roomType}</td>
            <td>${L.roomtype.roomSize}</td>
            <td>${L.roomtype.roomPrice}</td>
            <td>${L.sum}</td>

        </tr>
    </c:forEach>
    <tr>
        <td colspan="5" style="text-align: center;">
            <a href="#">首页</a>
            <a href="#">上一页</a>
            <a href="#">下一页</a>
            <a href="#">尾页</a>
        </td>
    </tr>
</table>
</body>
</html>
